package com.company;

public class Test10自由落体 {
    public static void main(String[] args) {
        System.out.println(ziyou(2,10));
    }

    /**
     * 递归实现
     * @param count
     * @param height
     * @return
     */
    public static float ziyou(int count,float height){
        if(count==1){
            return height / 2;
        }else{
            return ziyou(count-1,height/2);
        }
    }
}
